/*----------------------------------------------------------
* FILE: HibernateDao.java
* LOGICAL NAME: HibernateDao
* PRODUCT: bila-framework
*----------------------------------------------------------
* MODIFICATIONS
* DATE Aug 29, 2011
* AUTHOR wjuarez
*----------------------------------------------------------
*/

package bila.framework.dao.hibernate;

import java.io.Serializable;

import bila.framework.dao.Dao;

/**
 * @author WJuarez
 * <b>Created by </b>wjuarez
 * <b>for</b> bila-framework
 * <b>package</b> bila.framework.dao.hibernate
 * <b>on</b> Aug 29, 2011 5:47:28 PM
 * <b>Purpose</b> 
 * <p>
 *		DAO generico con el uso de Hibernate
 * </p>
 */
public interface HibernateDao<Model, ModelId extends Serializable> extends Dao<Model, ModelId> {

	/**
	 * Ejecuta una funcion DML (Insert, Update o Delete) utilizando
	 * hql, ademas se define los parametros a utilizar
	 * @param hql funcion DML que se desea ejecutar
	 * @param params parametros de la sentencia
	 * @throws Exception
	 */
	public void executeDml(String hql, Object[] params) throws Exception;
	
}
